home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.0 KB | 38 lines | [TEXT/GEOL] |
- Item 1164416 9-Aug-90 08:47PDT
-
- From: PASCOE1 Pascoe, Geoff
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: MemoryMgrProblem
-
- Martin,
-
- If I understand your problem correctly- i.e., you need toolbox calls to
- allocate as permananent memory- then there is already a MacApp routine for you.
- It is called "PermAllocation". Use it like this-
-
-
- VAR
- oldFlag : BOOLEAN;
-
- BEGIN
- oldFlag := PermAllocation(TRUE) { All allocs are counted permanent. }
-
- --- your toolbox calls -----
-
- oldFlag := PermAllocation(oldFlag) { Restore allocation flag }
-
- END;
-
- Also, keep in mind that there isn't a special area of memory (address range)
- that is permanent or temporary. Allocations are permanent or temporary only
- for the purpose of MacApp tracking how much memory is held in reserve for
- really important allocations- like segment loads.
-
- Try this first, if it doesn't work you may have some other problem.
-
- Hope this helps,
- Geoff
-
-